<script src="<?=STATIC_PATH?>/js/calendar/WdatePicker.js"></script>
<link href="<?=STATIC_PATH?>/js/calendar/skin/WdatePicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
var listjson = <?=$listjson?>;
</script>
<div class="listDiv" style="height:85%;">
    <table class="listTab" cellpadding="0" cellspacing="0">
        <thead>
        <tr>
            <td width="5%"><span></span>编号</td>
            <td width="20%"><span></span>会议标题</td>
            <td width="15%"><span></span>主持人</td>
            <td width="10%"><span></span>开会日期</td>
            <td width="15%">操作&nbsp;&nbsp;<a id="add" href="#">[发起会议]</a></td>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($list as $item):?>
        <tr>
            <td><?=$item['id']?>&nbsp;</td>
            <td><span><?=$item['title']?>&nbsp;</span></td>
            <td><?=Isubstr($item['host'], 10, false)?>&nbsp;</td>
            <td><?=date("Y-m-d", $item['forecast'])?>&nbsp;</td>
            <td align="left">
                <a id="edit" rel="<?=$item['id']?>" href="#">编辑</a>

                <a id="drop" rel="<?=$item['id']?>" href="#">删除</a>
            </td>
        </tr>
            <?php endforeach;?>
        </tbody>
    </table>
</div>
<div id="add_box" class="hide">
    <form action="/oa/recordAdd" method="post" id="record_add">
        <input type="hidden" name="id" value="0">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="80px">
            <tr>
                <td width="150px" align="right">&nbsp;会议标题：&nbsp;</td>
                <td><input type="text" style="width: 250px;" name="title" /></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;会议参与者：&nbsp;</td>
                <td><input type="text" style="width: 250px;" name="participant" /></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;预计开会时间：&nbsp;</td>
                <td><input type="text" class="Wdate" style="width: 200px;" onclick="WdatePicker()" name="forecast"/></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;备注：&nbsp;</td>
                <td><textarea name="remark" rows="5" cols="35"></textarea></td>
            </tr>
        </table>
    </form>
</div>
<div id="edit_box" class="hide">
    <form action="/oa/recordEdit" method="post" id="record_edit">
        <input type="hidden" name="id" value="0">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="80px">
            <tr>
                <td width="150px" align="right">&nbsp;会议标题：&nbsp;</td>
                <td><input type="text" style="width: 250px;" name="title" /></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;会议参与者：&nbsp;</td>
                <td><input type="text" style="width: 250px;" name="participant" /></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;预计开会时间：&nbsp;</td>
                <td><input type="text" style="width: 200px;" name="forecast"/></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;会议开始时间：&nbsp;</td>
                <td><input type="text" style="width: 200px;" name="start_time"/></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;会议结束时间：&nbsp;</td>
                <td><input type="text" style="width: 200px;" name="end_time"/></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;会议内容：&nbsp;</td>
                <td><textarea name="content" rows="5" cols="35"></textarea></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;会议成果：&nbsp;</td>
                <td><textarea name="result" rows="5" cols="35"></textarea></td>
            </tr>
            <tr>
                <td width="150px" align="right">&nbsp;备注：&nbsp;</td>
                <td><textarea name="remark" rows="5" cols="35"></textarea></td>
            </tr>
        </table>
    </form>
</div>


